#!/usr/bin/env python
#coding=utf-8
def jsSucc(msg='成功'):
    return '''
    <script>
        alert('%s');
    	opener.location.reload();
    	window.close();
    </script>
    '''%msg

def jsFail(msg='失败'):
    return '''
    <script>
        alert('%s');
        history.go(-1);
    </script>
    '''%msg